package flowlight.service;

import flowlight.dao.FlowLightPicDao;
import flowlight.entity.FlowLight;
import flowlight.entity.FlowLightPic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("FliowLightPicService")
public class FliowLightPicService {
    @Resource(name = "FlowLightPicDao")
    private FlowLightPicDao dao;
    public void insertFlowLightPic(FlowLightPic pic) {
        dao.insertFlowLightPic(pic);
    }
    public void deleteFlowLightPic(Integer flowLightId){
        dao.deleteFlowLightPic(flowLightId);
    }
    public List<FlowLightPic> queryFlowLightPic(Integer flowLightId) {
        return dao.queryFlowLightPic(flowLightId);
    }
}
